﻿namespace TestTool.Tests.Common.Soap
{
    using System;
    using System.Runtime.CompilerServices;

    public class SoapFaultException : Exception
    {
        public SoapFaultException(TestTool.Tests.Common.Soap.Fault fault)
        {
            this.Fault = fault;
            this.FaultMessage = null;
        }

        public SoapFaultException(SoapMessage<TestTool.Tests.Common.Soap.Fault> message)
        {
            this.Fault = message.Object;
            this.FaultMessage = message;
        }

        public TestTool.Tests.Common.Soap.Fault Fault { get; protected set; }

        public SoapMessage<TestTool.Tests.Common.Soap.Fault> FaultMessage { get; protected set; }
    }
}

